/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cashbox.gui.componentes;

import java.awt.AlphaComposite;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;

/**
 *
 * @author Gustavo Enrique Ruiz Cisneros
 */
public class CashBoxDesktopPane extends javax.swing.JDesktopPane{

    
    public CashBoxDesktopPane() {
        setLayout(new BorderLayout());
        setOpaque(false);
        setBackground(new Color(240, 240, 240));
    }

    @Override
    protected void paintComponent(Graphics g) {
        Graphics2D graphics2d = (Graphics2D) g.create();
        graphics2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);

        graphics2d.setComposite(AlphaComposite.Src);

        graphics2d.setColor(getBackground());
        graphics2d.fillRoundRect(0, 0, getWidth(), getHeight(),8, 8);

        graphics2d.dispose();
    }

    
}
